package org.example.car.service.service.impl;

import org.example.car.service.domain.Types;
import org.example.car.service.mapper.TypesMapper;
import org.example.car.service.service.TypesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: Yanyanyu
 * @Date: 2024/6/30 20:12
 */
@Service
public class TypesServiceImpl implements TypesService {

    @Autowired
    private TypesMapper typesMapper;

    @Override
    public List<Types> getList(Types types) {
        return typesMapper.getList(types);
    }

    @Override
    public boolean add(Types types) {
        return typesMapper.add(types);
    }

    @Override
    public boolean update(Types types) {
        return typesMapper.update(types);
    }

    @Override
    public boolean del(Integer typeId) {
        return typesMapper.del(typeId);
    }

    @Override
    public void insertAll(List<Types> typesList) {
        typesMapper.insertAll(typesList);
    }
}
